/**
 * Copyright (c) 2021 765819328@qq.com
 * All rights reserved.
 * Created on 2021-09-27
 */
package com.chiang.springcloud.service.impl;

import com.chiang.springcloud.dao.PaymentDao;
import com.chiang.springcloud.entities.Payment;
import com.chiang.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author : 765819328@qq.com
 * @version :
 * @date : Created in 2021/9/27 16:07
 * @description: 支付实现类
 * @modified By:
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
